/*
package cn.yr.common.exception.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * @ClassName : FilterConfig
 * @Description : 过滤器配置
 * @Author : Lang
 * @Date: 2020-06-23 09:25
 *//*

@Configuration
public class FilterConfig {

    @Bean
    public FilterRegistrationBean exceptionFilterRegistration(ExceptionFilter exceptionFilter) {
        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setFilter(exceptionFilter);
        registration.setName("exceptionFilter");
        //此处尽量小，要比其他Filter靠前
        registration.setOrder(-1);
        return registration;
    }

}
*/
